package com.example.demo.mapper;

import com.example.demo.entity.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface ordermapper {
    //进行订单的分页查询
    public List<Order> page(int page, int size, String query,String username);
    //进行订单的条件查询
    public List<Order> list(String query,String username);

    int delete(int id);

    int update(int i, String query, String username, Date modifiedTime);

    void add(Order order);

    void update1(int i, Date date, int id);
}
